package com.logictech.lims.entity;

import java.util.Date;
import org.jeecgframework.p3.core.utils.persistence.Entity;

/**
 * 描述：</b>GlasswareType:<br>
 * 
 * @author guoqi
 * @since：2017年03月23日 13时02分41秒 星期四
 * @version:1.0
 */
public class GlasswareType implements Entity<Integer> {
	private static final long serialVersionUID = 1L;

	/**
	 * 玻璃仪器类型ID
	 */
	private Integer id;
	/**
	 * 类型
	 */
	private String type;
	
	private String typeVal;
	/**
	 * 规格
	 */
	private String size;
	/**
	 * 编号规则
	 */
	private String rule;
	/**
	 * 删除标记
	 */
	private String deleteFlag;
	/**
	 * 创建者Id
	 */
	private String createUser;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 更新者Id
	 */
	private String updateUser;
	/**
	 * 更新时间
	 */
	private Date updateTime;

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getType() {
		return this.type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getSize() {
		return this.size;
	}

	public void setSize(String size) {
		this.size = size;
	}

	public String getRule() {
		return this.rule;
	}

	public void setRule(String rule) {
		this.rule = rule;
	}
	
	

	public String getCreateUser() {
		return this.createUser;
	}

	public void setCreateUser(String createUser) {
		this.createUser = createUser;
	}

	public Date getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public String getUpdateUser() {
		return this.updateUser;
	}

	public void setUpdateUser(String updateUser) {
		this.updateUser = updateUser;
	}

	public Date getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	public String getTypeVal() {
		if("1".equals(type)){
			typeVal = "容量瓶";
		}else if("2".equals(type)){
			typeVal = "移液管";
		}else if("3".equals(type)){
			typeVal = "刻度吸管";
		}else if("4".equals(type)){
			typeVal = "量筒";
		}
		return typeVal;
	}

	public void setTypeVal(String typeVal) {
		this.typeVal = typeVal;
	}

	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	@Override
	public String toString() {
		return "[类型=" + getTypeVal() + ", 规格=" + size + "ml" + "]";
	}

}
